package com.zbkj.crmeb.supplier.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.common.PageParamRequest;
import com.crmeb.core.common.CommonResult;
import com.zbkj.crmeb.chant.request.EnableTakeAddressRequest;
import com.zbkj.crmeb.supplier.model.SupplierAddress;
import com.zbkj.crmeb.supplier.request.SupplierAddressRequest;
import com.zbkj.crmeb.supplier.request.SupplierSaveAddressRequest;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author cdm
 * @since 2023-08-28
 */
public interface SupplierAddressService extends IService<SupplierAddress> {

    /**
     * 新增/编辑自提地址
     * @param request
     * @return
     */
    CommonResult<String> saveOrUpdateAddress(SupplierSaveAddressRequest request);

    /**
     * 启用/关闭自提地址
     * @param request
     * @return
     */
    CommonResult<String> enableTakeAddress(EnableTakeAddressRequest request);

    /**
     * 删除自提地址
     * @param id
     * @return
     */
    CommonResult<String> deleteTakeAddress(Integer id);

    /**
     * 自提地址列表
     * @param request
     * @return
     */
    List<SupplierAddress> addressList(SupplierAddressRequest request);

}
